from sklearn.ensemble import RandomForestRegressor
import numpy as np
'''
随机森林回归参数介绍  https://blog.csdn.net/qq_36535820/article/details/119751337
'''
def randomForestRegressor(X,Y,testX,n_estimators=100):
    '''
    经过同一预处理的输入
    :param X:
    :param Y:
    :param testX:
    :param n_estimators:
    :return:
    '''
    rf = RandomForestRegressor(n_estimators=100,random_state=42)
    rf.fit(X, Y)
    prediction = rf.predict(testX)
    return prediction
